<?php

require_once __DIR__ . '/vendor/autoload.php';

$client = (new MongoDB\Client);
$collection = $client->selectCollection('test', 'users');
$res = $collection->insertOne([
   'name' => 'erge',
   'age' => 18,
   'email' => 'likelxl@qq.com',
]);
var_dump($res->getInsertedCount());
var_dump($res->getInsertedId());
